package com.aaa.java05;

import java.util.List;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/7/6 14:27
 * @description：老师类
 * @modified By：
 * @version: 1.0
 */
public class Teacher {
    String  name;
    int age;

    public Teacher() {
    }

    public Teacher(String name, int age) {
        this.name = name;
        this.age = age;
    }

   /* @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }*/


    public static void main(String[] args) {
        int a=100;
        int b=100;
        //Integer  -128-----+127，值保存在常量池中。
        Integer aa=100;
        Integer bb=100;
        //Integer aaa = 1000
        Integer aaa=1000;
        //Integer bbb = 1000
        Integer bbb=1000;

        System.out.println(a==b);
        System.out.println(aa==bb);
        System.out.println(aaa==bbb);

    }
}
